Class Syslog

Summary

Fully Qualified Name: Laminas\Log\Writer\Syslog
Extends: AbstractWriter

Description

Writes log messages to syslog

Methods

Name Description Defined By
__construct() Constructor Syslog
addFilter() Add a filter specific to this writer. AbstractWriter
filterPlugin() Get filter instance AbstractWriter
formatterPlugin() Get formatter instance AbstractWriter
getFilterPluginManager() Get filter plugin manager AbstractWriter
getFormatterPluginManager() Get formatter plugin manager AbstractWriter
setApplicationName() Set application name Syslog
setConvertWriteErrorsToExceptions() Set convert write errors to exception flag AbstractWriter
setFacility() Set syslog facility Syslog
setFilterPluginManager() Set filter plugin manager AbstractWriter
setFormatter() Set a new formatter for this writer AbstractWriter
setFormatterPluginManager() Set formatter plugin manager AbstractWriter
shutdown() Close syslog. Syslog
write() Log a message to this writer. AbstractWriter

Method Details

__construct()

Constructor

Parameter Name Type Description
$params array Array

Returns: \Syslog

addFilter()

Add a filter specific to this writer.

Parameter Name Type Description
$filter int|string|\Filter\FilterInterface
$options array|null

Returns: \AbstractWriter

filterPlugin()

Get filter instance

Parameter Name Type Description
$name string
$options array|null

Returns: \Filter\FilterInterface

formatterPlugin()

Get formatter instance

Parameter Name Type Description
$name string
$options array|null

Returns: \Formatter\FormatterInterface

getFilterPluginManager()

Get filter plugin manager

Returns: \LogFilterPluginManager

getFormatterPluginManager()

Get formatter plugin manager

Returns: \LogFormatterPluginManager

setApplicationName()

Set application name

Parameter Name Type Description
$appName string Application

Returns: \Syslog

setConvertWriteErrorsToExceptions()

Set convert write errors to exception flag

Parameter Name Type Description
$convertErrors bool

Returns:

setFacility()

Set syslog facility

Parameter Name Type Description
$facility int Syslog

Returns: \Syslog

setFilterPluginManager()

Set filter plugin manager

Parameter Name Type Description
$plugins string|\LogFilterPluginManager

Returns: self

setFormatter()

Set a new formatter for this writer

Parameter Name Type Description
$formatter string|\Formatter\FormatterInterface
$options array|null

Returns: self

setFormatterPluginManager()

Set formatter plugin manager

Parameter Name Type Description
$plugins string|\LogFormatterPluginManager

Returns: self

shutdown()

Close syslog.

Returns: void

write()

Log a message to this writer.

Parameter Name Type Description
$event array log

Returns: void

Top